<#--
package ${class.package};
-->

package ${plugin.getDestinationPackage(class)};

<#--
<#list class.source.imports as imports>
import ${imports};
</#list>
-->

/**
* @spring.service
*/
public class ${plugin.getDestinationClassname(class)} implements ${plugin.interfacePackagereplace}.${plugin.getInterfaceName(class)}{

	private ${class.package}.${class.name} ${plugin.getVariableName(class.name)};
	
	public void set${class.name}(${class.package}.${class.name} ${plugin.getVariableName(class.name)}){
		this.${plugin.getVariableName(class.name)}=${plugin.getVariableName(class.name)};
	}
	public ${class.package}.${class.name} get${class.name}(){
		return this.${plugin.getVariableName(class.name)};
	}
	
	<#list class.methods as methods>
		<#if methods.getTagByName("service.method")?? && plugin.isAllowedMethod(methods)>
			<#if methods.returns.void >
				public ${methods.getDeclarationSignature(false)}{
					this.${plugin.getVariableName(class.name)}.${methods.callSignature};
				}
			</#if>
			<#if !methods.returns.void >
				public ${methods.getDeclarationSignature(false)}{
					return this.${plugin.getVariableName(class.name)}.${methods.callSignature};
				}
			</#if>
		</#if>
	</#list>
}